﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wedn.Core.Common
{
    /// <summary>
    /// 关系对象类型
    /// </summary>
    public enum ObjectType
    {
        /// <summary>
        /// 文章
        /// </summary>
        Post = 0,
        /// <summary>
        /// 用户
        /// </summary>
        User = 1,
        /// <summary>
        /// 链接
        /// </summary>
        Link = 2,
        /// <summary>
        /// 评论
        /// </summary>
        Comment = 3
    }
    /// <summary>
    /// 文章类型
    /// </summary>
    public enum PostType
    {
        /// <summary>
        /// 普通文章
        /// </summary>
        Post = 0,
        /// <summary>
        /// 页面
        /// </summary>
        Page = 1,
        /// <summary>
        /// 媒体
        /// </summary>
        Media = 2
    }
    /// <summary>
    /// 文章状态
    /// </summary>
    public enum PostStatus
    {
        //(0:公开, 1:加密, 2:私密, 3:继承, 4:草稿, 5:自动草稿, 6:回收站...)
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = -1,
        /// <summary>
        /// 公开发布
        /// </summary>
        Pubilc = 0,
        /// <summary>
        /// 加密
        /// </summary>
        Encrypt = 1,
        /// <summary>
        /// 私有
        /// </summary>
        Private = 2,
        /// <summary>
        /// 继承的
        /// </summary>
        Inherit = 3,
        /// <summary>
        /// 草稿
        /// </summary>
        Draft = 4,
        /// <summary>
        /// 自动草稿
        /// </summary>
        AutoDraft = 5,
        /// <summary>
        /// 回收站
        /// </summary>
        Recycle = 6
    }
    /// <summary>
    /// 文章评论状态
    /// </summary>
    public enum PostCommentStatus
    {
        /// <summary>
        /// 所有人可评论
        /// </summary>
        Open = 0,
        /// <summary>
        /// 只有用户可评论
        /// </summary>
        JustUser = 1,
        /// <summary>
        /// 不允许评论
        /// </summary>
        Close = 2
    }
    /// <summary>
    /// 文章Ping状态(0:Open,1:JustUser, 2,Close...)
    /// </summary>
    public enum PostPingStatus
    {
        /// <summary>
        /// 所有人Ping
        /// </summary>
        Open = 0,
        /// <summary>
        /// 只有用户可Ping
        /// </summary>
        JustUser = 1,
        /// <summary>
        /// 不允许Ping
        /// </summary>
        Close = 2
    }
    /// <summary>
    /// 用户状态
    /// </summary>
    public enum UserStatus
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = -1,
        /// <summary>
        /// 正常
        /// </summary>
        Normal = 0,
        /// <summary>
        /// 等待审核
        /// </summary>
        Awaiting = 1,
    }
    /// <summary>
    /// 用户角色权限
    /// </summary>
    public enum UserRole
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = -1,
        /// <summary>
        /// 超级管理员
        /// </summary>
        Administrator = 0,
        /// <summary>
        /// 撰写人
        /// </summary>
        Writer = 1,
        /// <summary>
        /// 订阅者
        /// </summary>
        Subscriber = 2,
    }
    /// <summary>
    /// 评论状态
    /// </summary>
    public enum CommentStatus
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = -1,
        /// <summary>
        /// 等待审核
        /// </summary>
        Awaiting = 0,
        /// <summary>
        /// 审核通过
        /// </summary>
        Approved = 1,
        /// <summary>
        /// 回收站
        /// </summary>
        Recycle = 2,
        /// <summary>
        /// 垃圾评论
        /// </summary>
        Spam = 3,
    }

    /// <summary>
    /// 链接类型
    /// </summary>
    public enum LinkType
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = -1,
        /// <summary>
        /// 友情链接
        /// </summary>
        Blogroll = 0,
        /// <summary>
        /// 导航菜单
        /// </summary>
        Navigation = 1,
        /// <summary>
        /// 脚注链接
        /// </summary>
        Footer = 2
    }

    /// <summary>
    /// 标签类型
    /// </summary>
    public enum TermType
    {
        /// <summary>
        /// 默认状态
        /// </summary>
        Default = -1,
        /// <summary>
        /// 文章Tag
        /// </summary>
        PostTag = 0,
        /// <summary>
        /// 文章类别
        /// </summary>
        PostCategory = 1
    }
}
